package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作业对象 assignments
 * 
 * @author ruoyi
 * @date 2025-09-25
 */
public class Assignments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 实验ID */
    @Excel(name = "实验ID")
    private Long assignmentId;

    /** 开课ID */
    private Long offeringId;

    /** 实验名称 */
    @Excel(name = "实验名称")
    private String assignmentName;

    /** 实验描述 */
    @Excel(name = "实验描述")
    private String assignmentDescription;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 总分值 */
    @Excel(name = "总分值")
    private BigDecimal totalScore;

    /** 状态 */
    private String status;

    /** 是否允许迟交 */
    @Excel(name = "是否允许迟交")
    private String allowLateSubmission;

    /** 最大提交次数 */
    private Long maxSubmissions;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setAssignmentId(Long assignmentId) 
    {
        this.assignmentId = assignmentId;
    }

    public Long getAssignmentId() 
    {
        return assignmentId;
    }

    public void setOfferingId(Long offeringId) 
    {
        this.offeringId = offeringId;
    }

    public Long getOfferingId() 
    {
        return offeringId;
    }

    public void setAssignmentName(String assignmentName) 
    {
        this.assignmentName = assignmentName;
    }

    public String getAssignmentName() 
    {
        return assignmentName;
    }

    public void setAssignmentDescription(String assignmentDescription) 
    {
        this.assignmentDescription = assignmentDescription;
    }

    public String getAssignmentDescription() 
    {
        return assignmentDescription;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setTotalScore(BigDecimal totalScore) 
    {
        this.totalScore = totalScore;
    }

    public BigDecimal getTotalScore() 
    {
        return totalScore;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setAllowLateSubmission(String allowLateSubmission) 
    {
        this.allowLateSubmission = allowLateSubmission;
    }

    public String getAllowLateSubmission() 
    {
        return allowLateSubmission;
    }

    public void setMaxSubmissions(Long maxSubmissions) 
    {
        this.maxSubmissions = maxSubmissions;
    }

    public Long getMaxSubmissions() 
    {
        return maxSubmissions;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assignmentId", getAssignmentId())
            .append("offeringId", getOfferingId())
            .append("assignmentName", getAssignmentName())
            .append("assignmentDescription", getAssignmentDescription())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("totalScore", getTotalScore())
            .append("status", getStatus())
            .append("allowLateSubmission", getAllowLateSubmission())
            .append("maxSubmissions", getMaxSubmissions())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
